{extend name="base" /}
{block name="body"}
<div class="layui-body">
    <!--tab标签-->
    <div class="layui-tab layui-tab-brief">
        <ul class="layui-tab-title">
            <li class=""><a href="{:url('admin/MsgAndMailConfig/index')}">短信邮件模板管理</a></li>
            <li class=""><a href="{:url('admin/MsgAndMailConfig/add')}">添加模板</a></li>
            <li class="layui-this">短信配置</li>
            <li class=""><a href="{:url('admin/MsgAndMailConfig/mail')}">邮件配置</a></li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <form class="layui-form form-container" action="{:url('admin/MsgAndMailConfig/save')}" method="post">
                    <div class="layui-form-item">
                        <label class="layui-form-label">url</label>
                        <div class="layui-input-block">
                            <input type="text" name="url" value="{$config_info.url}" required  lay-verify="required" placeholder="短信供应商URL" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">username</label>
                        <div class="layui-input-block">
                            <input type="text" name="username" value="{$config_info.username}" placeholder="请输入username" class="layui-input">
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">password</label>
                        <div class="layui-input-block">
                            <input type="text" name="password" value="{$config_info.password}" placeholder="请输入password" class="layui-input">
                        </div>
                    </div>
                    <input type="hidden" name="type" value="0">
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" lay-submit lay-filter="*">保存</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{/block}